﻿/* Edited for ZBrush version 2021 WITH NOTEPAD++  ****  COMMENT THIS CODE  ***
//TODO: MAKE + & - BUTTONS TO INCREMENT FILENAME
//button that uses the stored file name to save the project
//[VarInc,Variable name]
//Adds 1 to the value of an existing variable

//[VarSet,choice,[MessageYesNo,"Do you want to ADD TO the FILENAME?"]]//YES and NO  clicked (0=NO, 1=YES) 
//[If,choice==1,
	//[RoutineCall,ReSize]
	//[MessageOK,"The FILENAME ADDED","Operation completed"],
	//else
	//[MessageOK,"Nothing changed","Operation aborted"]//followed by Exit
	//[EXIT]
	//]//END OF IF STATEMENT
*/	


 

[VarDef,zprSavedAs,""]
[Vardef,DJ_ZPRPath,""]
[IButton,???,"Save the current project with existing file name",
[If,[MemGetSize,DJ_ZPRPath],		
	[MemReadString,DJ_ZPRPath,zprSavedAs,0]//reads the path from the memblock
	[FileNameSetNext,zprSavedAs]
	[IPress,File:Save As]
	[Note,[StrMerge,zprSavedAs," saved...,5"]]//shows file in the NoteBar
	]//end if
]//end button//EOF